package com.fqgj.sentry.controller.mc.request;

import com.fqgj.sentry.common.exception.BizException;
import com.fqgj.sentry.common.exception.enums.ErrorCodeEnums;
import com.fqgj.sentry.common.request.ParamsObject;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-07-21 下午5:00
 */


public class PasswordVo extends ParamsObject {
    private String newPassWord;
    private String oldPassWord;


    @Override
    public void validate() {
        if (newPassWord==null || oldPassWord==null){
            throw new BizException(ErrorCodeEnums.param_valid_error);
        }
    }

    public String getNewPassWord() {
        return newPassWord;
    }

    public PasswordVo setNewPassWord(String newPassWord) {
        this.newPassWord = newPassWord;
        return this;
    }

    public String getOldPassWord() {
        return oldPassWord;
    }

    public PasswordVo setOldPassWord(String oldPassWord) {
        this.oldPassWord = oldPassWord;
        return this;
    }
}
